import numpy as np

a = np.array([0, 1, 2, 3, 4])

# 均值
print(a.mean())
print(np.mean(a))

# 方差
print(a.var())

# 标准差
print(a.std())